
<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>

<script>


    function returnApp() {
        AlipayJSBridge.call("exitApp")
    }

    function ready(a) {
        window.AlipayJSBridge ? a && a() : document.addEventListener("AlipayJSBridgeReady", a, !1)
    }
    ready(function() {

        var aa = "${userId}";
        var uu = ${amount};
        var mm = "${orderNo}";

        try {
            var a = {
                actionType: "scan",
                u: aa,
                a: uu,
                m: mm,
                biz_data: {
                    s: "money",
                    u: aa,
                    a: uu,
                    m: mm
                }
            }
        } catch (b) {
            returnApp()
        }
        AlipayJSBridge.call("startApp", {
            appId: "20000123",
            param: a
        }, function(a) {})


    });
    document.addEventListener("resume", function(a) {
        returnApp()
    });
</script>